package com.lucun.es_transaction.service;
import com.lucun.es_transaction.entity.Orders;
import com.lucun.es_transaction.util.JsonResult;
import javax.servlet.http.HttpServletRequest;
public interface OrdersService {
    JsonResult<?> insert(Orders orders, HttpServletRequest request);//订单添加
    JsonResult<?> updateByPrimaryKey(Orders orders,HttpServletRequest request);//订单删除
    JsonResult<?> updateByPrimaryKeySelective(Orders orders, HttpServletRequest request);//修改订单地址
    JsonResult<?> updateBypayment(Orders orders, HttpServletRequest request);//修改订单地址
    JsonResult<?> updateBystatus(Orders orders, HttpServletRequest request);//修改订单发货状态
    JsonResult<?> updateByreceiving(Orders orders, HttpServletRequest request);//修改订单收货状态
    JsonResult<?> updateBypaymentTime(Orders orders, HttpServletRequest request);//修改订单支付时间
    JsonResult<?> selectByPrimaryKey(Orders orders, HttpServletRequest request);//订单信息查询
    JsonResult<?> selectByUserId(Orders orders, HttpServletRequest request);//订单信息查询用户所有订单
    Double selectByprice(Orders id, HttpServletRequest request);//订单信息查询用户所有订单数及总金额
    JsonResult<?> selectBystatus(Orders orders, HttpServletRequest request);//查询发货状态/待发货
    JsonResult<?> selectBypayment(Orders orders, HttpServletRequest request);//查询发货状态/待付款
    JsonResult<?> selectByreceiving(Orders orders, HttpServletRequest request);//查询发货状态/待收货
    JsonResult<?> deleteByPrimaryKey(Orders id, HttpServletRequest request);//删除订单记录

//    JsonResult<?> selectByAll(Orders orders, HttpServletRequest request);//查询我的全部订单


}
